package com.aiYouPms.admin.service;

import com.aiYouPms.admin.model.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {

    List<User> findAll();

    User findById(Long id);

    void save(User user);

    void deleteById(Long id);

    List<User> findByName(String name);
    PageInfo<User> search(Integer pageSize, Integer pageNum);
}
